package com.question.java.enums;

/**
 * @Description:
 * @Author: Jun Yang
 * @Time: 2018/12/21 下午3:27
 * @Version: 1.0
 */
public class AssetCodeEnumMain {

    public static void main(String[] args) {

        AssetCodeEnum assetCodeEnum = AssetCodeEnum.CASH_AVAILABLE;

        /**
         * 	PROXY_CITY_CASH_AVAILABLE(1,"城代","PROXY_CITY_CASH_AVAILABLE"),
         * 	PROXY_REGION_CASH_AVAILABLE(2,"片代","PROXY_REGION_CASH_AVAILABLE"),
         * 	PROXY_TOWN_CASH_AVAILABLE(3,"镇代","PROXY_TOWN_CASH_AVAILABLE"),
         *
         * 	PROXY_CITY_CASH_TRANSFER_AVAILABLE(1,"城代注册券","PROXY_CITY_CASH_TRANSFER_AVAILABLE"),
         * 	PROXY_REGION_CASH_TRANSFER_AVAILABLE(2,"片代注册券","PROXY_REGION_CASH_TRANSFER_AVAILABLE"),
         * 	PROXY_TOWN_CASH_TRANSFER_AVAILABLE(3,"镇代注册券","PROXY_TOWN_CASH_TRANSFER_AVAILABLE"),
         */

        if (AssetCodeEnum.PROXY_CITY_CASH_TRANSFER_AVAILABLE == assetCodeEnum) {
            System.out.println("true");
            System.out.println("assetCodeEnum:" + assetCodeEnum);
        }
        switch (assetCodeEnum) {
            case PROXY_CITY_CASH_AVAILABLE:
                System.out.println("PROXY_CITY_CASH_AVAILABLE");
                break;
            case PROXY_REGION_CASH_AVAILABLE:
                System.out.println("PROXY_REGION_CASH_AVAILABLE");
                break;
            case PROXY_TOWN_CASH_AVAILABLE:
                System.out.println("PROXY_TOWN_CASH_AVAILABLE");
                break;
            case PROXY_CITY_CASH_TRANSFER_AVAILABLE:
                System.out.println("PROXY_CITY_CASH_TRANSFER_AVAILABLE");
                break;
            case PROXY_REGION_CASH_TRANSFER_AVAILABLE:
                System.out.println("PROXY_REGION_CASH_TRANSFER_AVAILABLE");
                break;
            case PROXY_TOWN_CASH_TRANSFER_AVAILABLE:
                System.out.println("PROXY_TOWN_CASH_TRANSFER_AVAILABLE");
                break;
            default:
                throw new IllegalArgumentException("xxxx");
        }

    }
}
